package com.chianghao.rockframewrok.starter.web.properties;

import org.apache.commons.lang3.StringUtils;
import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "chianghao.mvc", ignoreUnknownFields = true)
public class SpringMvcProperties {

	/**
	 * 最大上床文件大小，单位字节
	 */
	private long maxUploadSize;


	public long getMaxUploadSize() {
		if(maxUploadSize==0){
			return 8388608L;
		}
		return maxUploadSize;
	}

	public void setMaxUploadSize(long maxUploadSize) {
		this.maxUploadSize = maxUploadSize;
	}

}
